using System;

namespace SS.Ynote.Classic.AutoCompletion
{
    public class ActionScript : IAutoCompleteMenu
    {
        string[] snippets = { "if(^)\n{\n;\n}", "if(^)\n{\n;\n}\nelse\n{\n;\n}", "for(^;;)\n{\n;\n}", "while(^)\n{\n;\n}", "switch(^)\n{\ncase : break;\n}" };
                string[] declarationSnippets = { 
               "public class ^\n{\n}", "private class ^\n{\n}", "internal class ^\n{\n}",
               "public struct ^\n{\n;\n}", "private struct ^\n{\n;\n}", "internal struct ^\n{\n;\n}",
               "public function ^()\n{\n;\n}", "private function ^()\n{\n;\n}", "function ^()\n{\n;\n}", "protected void ^()\n{\n;\n}",
               "public ^{ get; set; }", "private ^{ get; set; }", "internal ^{ get; set; }", "protected ^{ get; set; }"};
        public string Name
        {
            get { return "ActionScript"; }
        }

        public string[] Keywords
        {
            get { return System.IO.File.ReadAllLines(System.Windows.Forms.Application.StartupPath + "\actionscriptkeywords.src"); }
        }

        public string[] Snippets
        {
            get { return Snippets; }
        }

        public string[] DeclarationSnippets
        {
            get { throw new NotImplementedException(); }
        }

        public string[] Namespaces
        {
            get { throw new NotImplementedException(); }
        }
    }
 }

